package com.team11.server.controller.admin;

import com.team11.server.pojo.LqInformation;
import com.team11.server.service.admin.Admin_SelAllL_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@Api(tags = "管理员接口")
@RestController
public class Admin_SelAllL_Controller {
    @Autowired
    private Admin_SelAllL_Service admin_selAllL_service;
    @ApiOperation("获取请假审批记录")
    @GetMapping("/SelAllL")
    public List<LqInformation> selAllL(){
        return admin_selAllL_service.selAllL();
    }
}
